package com.gitee.thread.deadlock.readwrite;

import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @author ming.yan-1
 * @version V1.0
 * @Title com.gitee.thread.deadlock.readwrite
 * @Description
 * @date 2018/9/4  上午10:17
 */
public class ReadWrite {
    public static void main(String[] args) {
        ReentrantReadWriteLock reentrantReadWriteLock = new ReentrantReadWriteLock();
        Thread thread1 = new Thread(new ThreadDemo(true,false,reentrantReadWriteLock));
        thread1.start();
    }
}
